package com.hs.live.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 用户手机表
    */
@ApiModel(description="用户手机表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_user_phone")
public class UserPhoneDO implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键id")
    private Long id;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    @ApiModelProperty(value="手机号")
    private String phone;

    /**
     * ⽤户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="⽤户id")
    private Long userId;

    /**
     * 状态(0⽆效，1有效)
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="状态(0⽆效，1有效)")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="修改时间")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}